package com.n9.qq.android.RegisterProxySvcPack;

import java.io.Serializable;

/**
 * @author ice
 * @since 2019/3/1 14:14
 */
public final class MsgSyncFlag implements Serializable {
    public static final MsgSyncFlag SYNC_BEGIN;
    public static final MsgSyncFlag SYNC_CONTINUE;
    public static final MsgSyncFlag SYNC_END;
    public static final MsgSyncFlag SYNC_FINI;
    public static final int _SYNC_BEGIN = 0;
    public static final int _SYNC_CONTINUE = 1;
    public static final int _SYNC_END = 2;
    public static final int _SYNC_FINI = 3;
    private static MsgSyncFlag[] a;
    private String __T = new String();
    private int __value;

    static {
        boolean var0;
        if (!MsgSyncFlag.class.desiredAssertionStatus()) {
            var0 = true;
        } else {
            var0 = false;
        }

        a = new MsgSyncFlag[4];
        SYNC_BEGIN = new MsgSyncFlag(0, 0, "SYNC_BEGIN");
        SYNC_CONTINUE = new MsgSyncFlag(1, 1, "SYNC_CONTINUE");
        SYNC_END = new MsgSyncFlag(2, 2, "SYNC_END");
        SYNC_FINI = new MsgSyncFlag(3, 3, "SYNC_FINI");
    }

    private MsgSyncFlag(int var1, int var2, String var3) {
        this.__T = var3;
        this.__value = var2;
        a[var1] = this;
    }

    public static MsgSyncFlag convert(int var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].value() == var0) {
                return a[i];
            }
        }
        return null;
    }

    public static MsgSyncFlag convert(String var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].toString().equals(var0)) {
                return a[i];
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.__T;
    }

    public int value() {
        return this.__value;
    }
}

